﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NFramework.DataAccess.Querying
{
    public class TableQuery : IDataQuery
    {
        public TableQuery(string tableName)
        {
            _table = tableName;
        }
        private readonly string _table;

        #region [ IDataQuery Members ]

        public void InitializeHelper(IDataHelper helper)
        {
            helper.Procedure = string.Format("SELECT * FROM {0}", _table);
        }

        #endregion
    }
}
